package designpattern.demo.creational.singletonpattern;

/**
 * 多线程环境下的懒汉式单例模式(基于静态内部类实现)
 * @author ywq
 *
 *
 */
public class SingleLazy5 {


    private SingleLazy5() {
    }

    private static class Inner {
        final static SingleLazy5 s = new SingleLazy5();
    }


    public static SingleLazy5 getInstance() {

        return Inner.s;

    }


}
